"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const taskInstances = new Map();
function getTaskInstance(taskConstructor) {
    let ins = taskInstances.get(taskConstructor);
    if (!ins) {
        ins = new taskConstructor();
        taskInstances.set(taskConstructor, ins);
    }
    return ins;
}
exports.getTaskInstance = getTaskInstance;
